home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
wndwc20.zip
/
EX11.C
< prev
next >
Wrap
Text File
|
1989-03-06
|
1KB
|
27 lines
/* EXAMPLE 11: Virtual window sizing
----------------------------------------------------------------------*/
#include <conio.h>
#include <dos.h>
#include "wndwc20.h"
void main()
{
qinit();
initwindow( LIGHTGRAY_BG, 1, 0 );
setwindowmodes( VIRTUALMODE );
setvirtualsize( 20, 100 ); /* 20 rows by 100 columns */
makewindow( 5, 20, 15, 40, LIGHTCYAN+BLUE_BG, WHITE+BLUE_BG,
SINGLE_BORDER, WINDOW1 );
writetovirtual( WINDOW1 ); /* Now write to the virtual screen */
qfill(1,1,crt_rows,crt_cols,SAMEATTR,'?'); /* Fill screen w/data */
titlewindow( TOP, LEFT, YELLOW+BLUE_BG, " Virtual Window " );
wwrite( 4, 8, " >" ); /* Let's get our bearings. */
qwriteeos( tws.wndwattr+BLINK, "+" );
qwriteeos( SAMEATTR, "<- Row 4, Column 10 " );
vupdatewindow(); /* Update the complete window on the CRT. */
delay (4000); /* Make sure we see where the cursor is. */
removewindow();
getch();
}